package cn.blnp.net.flowable.task.user;

import lombok.Data;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Arrays;
import java.util.List;

/**
 * <h3></h3>
 *
 * @author <a href="mailto:blnp.yibin@qq.com">lyb</a>
 * @version 1.0
 * @since 2025/5/12 15:14
 */
@Data
public class TaskAssigneeBean implements Serializable {

    //指定任务办理人
    private String designatedUserName;
    //该方法将获取任务办理人
    public String getMangerOfProcessInitiator() {
        return "baby";
    }
    //该方法将获取任务候选人
    public List<String> getCandidateUsers() {
        List<String> candidateUsers = Arrays.asList("user1","user2");
        return candidateUsers;
    }
    //该方法将获取任务候选组
    public List<String> getCandidateGroups() {
        List<String> candidateGroups = Arrays.asList("group1","group2");
        return candidateGroups;
    }
}
